package org.google.openfrm.nodes;

import javax.persistence.Entity;
import javax.persistence.Table;

//used to describe 100% probability
@Entity
@Table(name = "bayes_nodes")
public class Constraint_Node extends Bayes_Node{

    public Constraint_Node(int id){
        super(id);
        setMarginal(true);
        setType("constraint");
    }

    public void setTrue(){
        this.setMarginalProbability(1.d);
    }
    public void setFalse(){
        this.setMarginalProbability(0.d);
    }
}
